<?php
include_once "service.php";

$id=$_REQUEST['id'];
$boardId=$_REQUEST['boardId'];
$service = new Dcservice();

try {
    $service->getDel($id);
    header("Location:./dc.php?boardId=" . $boardId);
}catch (Error $error){
    exit($error->getMessage());
}
